1 package uba.db.jdbc;
2
3 import java.io.InputStream;
4 import java.io.Reader;
5 import java.math.BigDecimal;
6 import java.net.URL;
7 import java.sql.Array;
8 import java.sql.Blob;
9 import java.sql.Clob;
10 import java.sql.Connection;
11 import java.sql.Date;
12 import java.sql.ParameterMetaData;
13 import java.sql.Ref;
14 import java.sql.ResultSet;
15 import java.sql.ResultSetMetaData;
16 import java.sql.SQLException;
17 import java.sql.SQLWarning;
18 import java.sql.Time;
19 import java.sql.Timestamp;
20 import java.util.Calendar;
21
22 /***
23 * @version $Revision: 1.1.1.1 $
24 */
25 public class PreparedStatement implements java.sql.PreparedStatement {
26
27 /***
28 * @param connection
29 * @param sql
30 * @param resultSetType
31 * @param resultSetConcurrency
32 * @throws SQLException
33 */
34 public PreparedStatement(SocketConnection connection, String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
35 if (resultSetType != java.sql.ResultSet.TYPE_FORWARD_ONLY) {
36 throw new UnsupportedResultSetTypeException();
37 }
38 if (resultSetConcurrency != java.sql.ResultSet.CONCUR_READ_ONLY) {
39 throw new UnsupportedResultSetConcurrencyModeException();
40 }
41 }
42
43 /* (non-Javadoc)
44 * @see java.sql.PreparedStatement#executeQuery()
45 */
46 public ResultSet executeQuery() throws SQLException {
47 // TODO Auto-generated method stub
48 return null;
49 }
50
51 /* (non-Javadoc)
52 * @see java.sql.PreparedStatement#executeUpdate()
53 */
54 public int executeUpdate() throws SQLException {
55 // TODO Auto-generated method stub
56 return 0;
57 }
58
59 /* (non-Javadoc)
60 * @see java.sql.PreparedStatement#setNull(int, int)
61 */
62 public void setNull(int parameterIndex, int sqlType) throws SQLException {
63 // TODO Auto-generated method stub
64
65 }
66
67 /* (non-Javadoc)
68 * @see java.sql.PreparedStatement#setBoolean(int, boolean)
69 */
70 public void setBoolean(int parameterIndex, boolean x) throws SQLException {
71 // TODO Auto-generated method stub
72
73 }
74
75 /* (non-Javadoc)
76 * @see java.sql.PreparedStatement#setByte(int, byte)
77 */
78 public void setByte(int parameterIndex, byte x) throws SQLException {
79 // TODO Auto-generated method stub
80
81 }
82
83 /* (non-Javadoc)
84 * @see java.sql.PreparedStatement#setShort(int, short)
85 */
86 public void setShort(int parameterIndex, short x) throws SQLException {
87 // TODO Auto-generated method stub
88
89 }
90
91 /* (non-Javadoc)
92 * @see java.sql.PreparedStatement#setInt(int, int)
93 */
94 public void setInt(int parameterIndex, int x) throws SQLException {
95 // TODO Auto-generated method stub
96
97 }
98
99 /* (non-Javadoc)
100 * @see java.sql.PreparedStatement#setLong(int, long)
101 */
102 public void setLong(int parameterIndex, long x) throws SQLException {
103 // TODO Auto-generated method stub
104
105 }
106
107 /* (non-Javadoc)
108 * @see java.sql.PreparedStatement#setFloat(int, float)
109 */
110 public void setFloat(int parameterIndex, float x) throws SQLException {
111 // TODO Auto-generated method stub
112
113 }
114
115 /* (non-Javadoc)
116 * @see java.sql.PreparedStatement#setDouble(int, double)
117 */
118 public void setDouble(int parameterIndex, double x) throws SQLException {
119 // TODO Auto-generated method stub
120
121 }
122
123 /* (non-Javadoc)
124 * @see java.sql.PreparedStatement#setBigDecimal(int, java.math.BigDecimal)
125 */
126 public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException {
127 // TODO Auto-generated method stub
128
129 }
130
131 /* (non-Javadoc)
132 * @see java.sql.PreparedStatement#setString(int, java.lang.String)
133 */
134 public void setString(int parameterIndex, String x) throws SQLException {
135 // TODO Auto-generated method stub
136
137 }
138
139 /* (non-Javadoc)
140 * @see java.sql.PreparedStatement#setBytes(int, byte[])
141 */
142 public void setBytes(int parameterIndex, byte[] x) throws SQLException {
143 // TODO Auto-generated method stub
144
145 }
146
147 /* (non-Javadoc)
148 * @see java.sql.PreparedStatement#setDate(int, java.sql.Date)
149 */
150 public void setDate(int parameterIndex, Date x) throws SQLException {
151 // TODO Auto-generated method stub
152
153 }
154
155 /* (non-Javadoc)
156 * @see java.sql.PreparedStatement#setTime(int, java.sql.Time)
157 */
158 public void setTime(int parameterIndex, Time x) throws SQLException {
159 // TODO Auto-generated method stub
160
161 }
162
163 /* (non-Javadoc)
164 * @see java.sql.PreparedStatement#setTimestamp(int, java.sql.Timestamp)
165 */
166 public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException {
167 // TODO Auto-generated method stub
168
169 }
170
171 /* (non-Javadoc)
172 * @see java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream, int)
173 */
174 public void setAsciiStream(int parameterIndex, InputStream x, int length)
175 throws SQLException {
176 // TODO Auto-generated method stub
177
178 }
179
180 /* (non-Javadoc)
181 * @see java.sql.PreparedStatement#setUnicodeStream(int, java.io.InputStream, int)
182 */
183 public void setUnicodeStream(int parameterIndex, InputStream x, int length)
184 throws SQLException {
185 // TODO Auto-generated method stub
186
187 }
188
189 /* (non-Javadoc)
190 * @see java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream, int)
191 */
192 public void setBinaryStream(int parameterIndex, InputStream x, int length)
193 throws SQLException {
194 // TODO Auto-generated method stub
195
196 }
197
198 /* (non-Javadoc)
199 * @see java.sql.PreparedStatement#clearParameters()
200 */
201 public void clearParameters() throws SQLException {
202 // TODO Auto-generated method stub
203
204 }
205
206 /* (non-Javadoc)
207 * @see java.sql.PreparedStatement#setObject(int, java.lang.Object, int, int)
208 */
209 public void setObject(int parameterIndex, Object x, int targetSqlType, int scale)
210 throws SQLException {
211 // TODO Auto-generated method stub
212
213 }
214
215 /* (non-Javadoc)
216 * @see java.sql.PreparedStatement#setObject(int, java.lang.Object, int)
217 */
218 public void setObject(int parameterIndex, Object x, int targetSqlType)
219 throws SQLException {
220 // TODO Auto-generated method stub
221
222 }
223
224 /* (non-Javadoc)
225 * @see java.sql.PreparedStatement#setObject(int, java.lang.Object)
226 */
227 public void setObject(int parameterIndex, Object x) throws SQLException {
228 // TODO Auto-generated method stub
229
230 }
231
232 /* (non-Javadoc)
233 * @see java.sql.PreparedStatement#execute()
234 */
235 public boolean execute() throws SQLException {
236 // TODO Auto-generated method stub
237 return false;
238 }
239
240 /* (non-Javadoc)
241 * @see java.sql.PreparedStatement#addBatch()
242 */
243 public void addBatch() throws SQLException {
244 // TODO Auto-generated method stub
245
246 }
247
248 /* (non-Javadoc)
249 * @see java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader, int)
250 */
251 public void setCharacterStream(int parameterIndex, Reader reader, int length)
252 throws SQLException {
253 // TODO Auto-generated method stub
254
255 }
256
257 /* (non-Javadoc)
258 * @see java.sql.PreparedStatement#setRef(int, java.sql.Ref)
259 */
260 public void setRef(int i, Ref x) throws SQLException {
261 // TODO Auto-generated method stub
262
263 }
264
265 /* (non-Javadoc)
266 * @see java.sql.PreparedStatement#setBlob(int, java.sql.Blob)
267 */
268 public void setBlob(int i, Blob x) throws SQLException {
269 // TODO Auto-generated method stub
270
271 }
272
273 /* (non-Javadoc)
274 * @see java.sql.PreparedStatement#setClob(int, java.sql.Clob)
275 */
276 public void setClob(int i, Clob x) throws SQLException {
277 // TODO Auto-generated method stub
278
279 }
280
281 /* (non-Javadoc)
282 * @see java.sql.PreparedStatement#setArray(int, java.sql.Array)
283 */
284 public void setArray(int i, Array x) throws SQLException {
285 // TODO Auto-generated method stub
286
287 }
288
289 /* (non-Javadoc)
290 * @see java.sql.PreparedStatement#getMetaData()
291 */
292 public ResultSetMetaData getMetaData() throws SQLException {
293 // TODO Auto-generated method stub
294 return null;
295 }
296
297 /* (non-Javadoc)
298 * @see java.sql.PreparedStatement#setDate(int, java.sql.Date, java.util.Calendar)
299 */
300 public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException {
301 // TODO Auto-generated method stub
302
303 }
304
305 /* (non-Javadoc)
306 * @see java.sql.PreparedStatement#setTime(int, java.sql.Time, java.util.Calendar)
307 */
308 public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException {
309 // TODO Auto-generated method stub
310
311 }
312
313 /* (non-Javadoc)
314 * @see java.sql.PreparedStatement#setTimestamp(int, java.sql.Timestamp, java.util.Calendar)
315 */
316 public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
317 throws SQLException {
318 // TODO Auto-generated method stub
319
320 }
321
322 /* (non-Javadoc)
323 * @see java.sql.PreparedStatement#setNull(int, int, java.lang.String)
324 */
325 public void setNull(int paramIndex, int sqlType, String typeName) throws SQLException {
326 // TODO Auto-generated method stub
327
328 }
329
330 /* (non-Javadoc)
331 * @see java.sql.PreparedStatement#setURL(int, java.net.URL)
332 */
333 public void setURL(int parameterIndex, URL x) throws SQLException {
334 // TODO Auto-generated method stub
335
336 }
337
338 /* (non-Javadoc)
339 * @see java.sql.PreparedStatement#getParameterMetaData()
340 */
341 public ParameterMetaData getParameterMetaData() throws SQLException {
342 // TODO Auto-generated method stub
343 return null;
344 }
345
346 /* (non-Javadoc)
347 * @see java.sql.Statement#executeQuery(java.lang.String)
348 */
349 public ResultSet executeQuery(String sql) throws SQLException {
350 // TODO Auto-generated method stub
351 return null;
352 }
353
354 /* (non-Javadoc)
355 * @see java.sql.Statement#executeUpdate(java.lang.String)
356 */
357 public int executeUpdate(String sql) throws SQLException {
358 // TODO Auto-generated method stub
359 return 0;
360 }
361
362 /* (non-Javadoc)
363 * @see java.sql.Statement#close()
364 */
365 public void close() throws SQLException {
366 // TODO Auto-generated method stub
367
368 }
369
370 /* (non-Javadoc)
371 * @see java.sql.Statement#getMaxFieldSize()
372 */
373 public int getMaxFieldSize() throws SQLException {
374 // TODO Auto-generated method stub
375 return 0;
376 }
377
378 /* (non-Javadoc)
379 * @see java.sql.Statement#setMaxFieldSize(int)
380 */
381 public void setMaxFieldSize(int max) throws SQLException {
382 // TODO Auto-generated method stub
383
384 }
385
386 /* (non-Javadoc)
387 * @see java.sql.Statement#getMaxRows()
388 */
389 public int getMaxRows() throws SQLException {
390 // TODO Auto-generated method stub
391 return 0;
392 }
393
394 /* (non-Javadoc)
395 * @see java.sql.Statement#setMaxRows(int)
396 */
397 public void setMaxRows(int max) throws SQLException {
398 // TODO Auto-generated method stub
399
400 }
401
402 /* (non-Javadoc)
403 * @see java.sql.Statement#setEscapeProcessing(boolean)
404 */
405 public void setEscapeProcessing(boolean enable) throws SQLException {
406 // TODO Auto-generated method stub
407
408 }
409
410 /* (non-Javadoc)
411 * @see java.sql.Statement#getQueryTimeout()
412 */
413 public int getQueryTimeout() throws SQLException {
414 // TODO Auto-generated method stub
415 return 0;
416 }
417
418 /* (non-Javadoc)
419 * @see java.sql.Statement#setQueryTimeout(int)
420 */
421 public void setQueryTimeout(int seconds) throws SQLException {
422 // TODO Auto-generated method stub
423
424 }
425
426 /* (non-Javadoc)
427 * @see java.sql.Statement#cancel()
428 */
429 public void cancel() throws SQLException {
430 // TODO Auto-generated method stub
431
432 }
433
434 /* (non-Javadoc)
435 * @see java.sql.Statement#getWarnings()
436 */
437 public SQLWarning getWarnings() throws SQLException {
438 // TODO Auto-generated method stub
439 return null;
440 }
441
442 /* (non-Javadoc)
443 * @see java.sql.Statement#clearWarnings()
444 */
445 public void clearWarnings() throws SQLException {
446 // TODO Auto-generated method stub
447
448 }
449
450 /* (non-Javadoc)
451 * @see java.sql.Statement#setCursorName(java.lang.String)
452 */
453 public void setCursorName(String name) throws SQLException {
454 // TODO Auto-generated method stub
455
456 }
457
458 /* (non-Javadoc)
459 * @see java.sql.Statement#execute(java.lang.String)
460 */
461 public boolean execute(String sql) throws SQLException {
462 // TODO Auto-generated method stub
463 return false;
464 }
465
466 /* (non-Javadoc)
467 * @see java.sql.Statement#getResultSet()
468 */
469 public ResultSet getResultSet() throws SQLException {
470 // TODO Auto-generated method stub
471 return null;
472 }
473
474 /* (non-Javadoc)
475 * @see java.sql.Statement#getUpdateCount()
476 */
477 public int getUpdateCount() throws SQLException {
478 // TODO Auto-generated method stub
479 return 0;
480 }
481
482 /* (non-Javadoc)
483 * @see java.sql.Statement#getMoreResults()
484 */
485 public boolean getMoreResults() throws SQLException {
486 // TODO Auto-generated method stub
487 return false;
488 }
489
490 /* (non-Javadoc)
491 * @see java.sql.Statement#setFetchDirection(int)
492 */
493 public void setFetchDirection(int direction) throws SQLException {
494 // TODO Auto-generated method stub
495
496 }
497
498 /* (non-Javadoc)
499 * @see java.sql.Statement#getFetchDirection()
500 */
501 public int getFetchDirection() throws SQLException {
502 // TODO Auto-generated method stub
503 return 0;
504 }
505
506 /* (non-Javadoc)
507 * @see java.sql.Statement#setFetchSize(int)
508 */
509 public void setFetchSize(int rows) throws SQLException {
510 // TODO Auto-generated method stub
511
512 }
513
514 /* (non-Javadoc)
515 * @see java.sql.Statement#getFetchSize()
516 */
517 public int getFetchSize() throws SQLException {
518 // TODO Auto-generated method stub
519 return 0;
520 }
521
522 /* (non-Javadoc)
523 * @see java.sql.Statement#getResultSetConcurrency()
524 */
525 public int getResultSetConcurrency() throws SQLException {
526 // TODO Auto-generated method stub
527 return 0;
528 }
529
530 /* (non-Javadoc)
531 * @see java.sql.Statement#getResultSetType()
532 */
533 public int getResultSetType() throws SQLException {
534 // TODO Auto-generated method stub
535 return 0;
536 }
537
538 /* (non-Javadoc)
539 * @see java.sql.Statement#addBatch(java.lang.String)
540 */
541 public void addBatch(String sql) throws SQLException {
542 // TODO Auto-generated method stub
543
544 }
545
546 /* (non-Javadoc)
547 * @see java.sql.Statement#clearBatch()
548 */
549 public void clearBatch() throws SQLException {
550 // TODO Auto-generated method stub
551
552 }
553
554 /* (non-Javadoc)
555 * @see java.sql.Statement#executeBatch()
556 */
557 public int[] executeBatch() throws SQLException {
558 // TODO Auto-generated method stub
559 return null;
560 }
561
562 /* (non-Javadoc)
563 * @see java.sql.Statement#getConnection()
564 */
565 public Connection getConnection() throws SQLException {
566 // TODO Auto-generated method stub
567 return null;
568 }
569
570 /* (non-Javadoc)
571 * @see java.sql.Statement#getMoreResults(int)
572 */
573 public boolean getMoreResults(int current) throws SQLException {
574 // TODO Auto-generated method stub
575 return false;
576 }
577
578 /* (non-Javadoc)
579 * @see java.sql.Statement#getGeneratedKeys()
580 */
581 public ResultSet getGeneratedKeys() throws SQLException {
582 // TODO Auto-generated method stub
583 return null;
584 }
585
586 /* (non-Javadoc)
587 * @see java.sql.Statement#executeUpdate(java.lang.String, int)
588 */
589 public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException {
590 // TODO Auto-generated method stub
591 return 0;
592 }
593
594 /* (non-Javadoc)
595 * @see java.sql.Statement#executeUpdate(java.lang.String, int[])
596 */
597 public int executeUpdate(String sql, int[] columnIndexes) throws SQLException {
598 // TODO Auto-generated method stub
599 return 0;
600 }
601
602 /* (non-Javadoc)
603 * @see java.sql.Statement#executeUpdate(java.lang.String, java.lang.String[])
604 */
605 public int executeUpdate(String sql, String[] columnNames) throws SQLException {
606 // TODO Auto-generated method stub
607 return 0;
608 }
609
610 /* (non-Javadoc)
611 * @see java.sql.Statement#execute(java.lang.String, int)
612 */
613 public boolean execute(String sql, int autoGeneratedKeys) throws SQLException {
614 // TODO Auto-generated method stub
615 return false;
616 }
617
618 /* (non-Javadoc)
619 * @see java.sql.Statement#execute(java.lang.String, int[])
620 */
621 public boolean execute(String sql, int[] columnIndexes) throws SQLException {
622 // TODO Auto-generated method stub
623 return false;
624 }
625
626 /* (non-Javadoc)
627 * @see java.sql.Statement#execute(java.lang.String, java.lang.String[])
628 */
629 public boolean execute(String sql, String[] columnNames) throws SQLException {
630 // TODO Auto-generated method stub
631 return false;
632 }
633
634 /* (non-Javadoc)
635 * @see java.sql.Statement#getResultSetHoldability()
636 */
637 public int getResultSetHoldability() throws SQLException {
638 // TODO Auto-generated method stub
639 return 0;
640 }
641
642 }